<?php

/**
 * @author shuang
 * @date 2016-11-16 8:25:14
 */
use yii\helpers\Url;
use common\widgets\DatalistWidgets;
use common\components\MTools;

$labels = \yii\helpers\ArrayHelper::merge($labels, [
            "auditstatus" => "审核状态",
            "username" => "被投诉刷手账号"
        ]);
//添加操作提示模板
echo $this->render("/layouts/prompt", array("labels" => $labels));

//调用数据列表模板
echo DatalistWidgets::widget([
    'data_url' => Url::toRoute(["task/ajaxappeallist"]),
    "labels" => $labels,
    "columns" => ["taskid", "title", "username","task_image", "sample_figure", "appeal_task_image", "auditstatus", "complain_at", "complain_audit_at", "complain_note", "appeal_at", "appeal_audit_at"],
    "tableOtherAttributes" => [
        "data-search" => "true"
    ],
    "toolbar" => "#toolbar",
    "fieldAttributes" => [
        "task_image" => [
            "data-class" => "table-image-list"
        ],
        "sample_figure" => [
            "data-class" => "table-image-list"
        ],
        "appeal_task_image" => [
            "data-class" => "table-image-list"
        ]
    ]
]);
